#!/usr/bin/env bash
ps -ef |egrep "php .*divide_packets_daemon.php" | awk '{print $2}' | xargs kill
nohup `which php` `pwd`/divide_packets_daemon.php >> /tmp/divide_packets_daemon.log &